<div class="campaign-item">
	<div class="campaign-thumbnail">
		<img src="<?php echo Yii::app()->baseUrl; ?>/img/icon/template_thumb.png" alt="template thumbnail" />
	</div>
	<div class="campaign-info">
		<h2><?php echo $data->name?></h2>
		<p><?php echo $data->description?></p>
		<h5><?php echo (!empty($data->updated_at))?$data->updated_at:$data->created_at;?></h5>
		<div class="campaign-info-status">
			<?php if($data->step < 5):?>
				<a class="btn btn-mini btn-primary" href="<?php echo Yii::app()->createUrl('campaigns/campaign/create', array('step' => ($data->step+1),'id' => $data->id));?>"><?php echo Yii::t("main","Tiếp tục bước",array('{step}' => ($data->step+1)));?></a>
			<?php else: ?>
				<span class="label label-success"><?php echo Yii::t("main","Hoàn thành");?></span>
			<?php endif; ?>
			<a class="btn btn-mini btn-danger" href="<?php echo Yii::app()->createUrl('campaigns/campaign/delete', array('id' => $data->id));?>"><?php echo Yii::t("main","Xóa");?></a>
		</div>
	</div>
<div class="clearfix"></div>
</div>